package org.example.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.example.entity.User;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zyl
 * @since 2024-10-15
 */
public interface UserMapper extends BaseMapper<User> {

    @Select("select * from user where id = #{id}")
    User getByIdMySelf(@Param("id") Integer id);
}
